import os

def tree(path, indent=''):
    if os.path.isdir(path):
        print(indent + os.path.basename(path) + "/")
        indent += "    "
        for item in os.listdir(path):
            tree(os.path.join(path, item), indent)
    else:
        print(indent + os.path.basename(path))


tree("/path/to/your/directory")